class http{
  static baseUrl = "http://47.108.197.28:3000";
  static request(url){
      return new Promise((resolve,reject)=>{
          wx.request({
              url: this.baseUrl + url,
              dataType: "text",
              method: 'GET', 
              success: function(res){
                  resolve(res)
              },
              fail: function(err) {
                  reject(err)
              }
          })
      })
  }
}
module.exports = http;